<?php
/**
 *	@package WordPress
 *	@subpackage Carbon_Paper
 */

/**
 *      Template Name: Blog
 *
 */

get_header();
?>

<div class="clear"></div>
<div class="clear"></div>
<?php if (!is_category()) : ?>
<div id="cover">&nbsp;</div>
<?php else :
      $my_category = get_category_by_path(get_query_var('category_name'),false);
?>
<div id="category-header">
	<h1><?php echo $my_category->cat_name;?></h1>
	<h3><?php echo $my_category->category_count;?> posts</h3>
	<p><?php echo $my_category->category_description;?></p>
</div>
<?php endif;?>
<div id="posts">
	<?php global $more; if (have_posts()) : while (have_posts()) : the_post(); ?>
		<?php get_template_part('content','post');?>
	<?php endwhile; ?>
	<div class="clear"></div>
	<?php if ( function_exists( 'render_pagination' ) ) render_pagination();?>
	<p>&nbsp;</p>
	<?php else : ?>
		<?php get_template_part('content','nomatch');?>
	<?php endif; ?>
</div><!-- /#posts -->

<?php get_template_part('second-column','index'); ?>
<?php if (!is_category()) : get_template_part('third-column','shared'); endif;?>

<?php get_footer(); ?>
</div><!-- /home or articles -->